﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC_Uthorization.Domain.Entity
{
    /// <summary>
    /// 角色表
    /// </summary>
    public class sys_role:Audit
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [Key]
        public int id { get; set; }
        /// <summary>
        /// 系统编号
        /// </summary>
        public string sys_id { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string offic_id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 角色类型
        /// </summary>
        public string? role_type { get; set; }
        /// <summary>
        /// 数据范围
        /// </summary>
        public int data_scope { get; set; }=8;
        /// <summary>
        /// 角色级别
        /// </summary>
        public int role_level { get; set; } = 0;
        /// <summary>
        /// 是否可用
        /// </summary>
        public int useable { get; set; }=1;

    }
}
